﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="Controls_Header" %>
<table cellpadding="1" cellspacing="1" width="100%" style="background-image: url('images/header_narrow.jpg'); border-collapse:collapse;">
    <tr style="height: 30px">
        <td>
        </td>
        <td>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td style="height: 100; vertical-align: bottom;">
            <asp:ImageButton ID="ImgLogo" runat="server" ImageUrl="~/Images/Logo.png" CausesValidation="false"
                Width="250" Height="80" />
        </td>
        <td width="40%" align="right" style="vertical-align: bottom;">
            <asp:LoginView ID="LoginView1" runat="server">
                <AnonymousTemplate>
                    <asp:LinkButton ID="Login" runat="server" Text="Login" OnClick="Login_Click" CssClass="BlueText"
                        CausesValidation="false"></asp:LinkButton>
                </AnonymousTemplate>
                <LoggedInTemplate>
                    <table cellpadding="2" cellspacing="2">
                        <tr>
                            <td align="left" style="width: 30px">
                                <asp:ImageButton BorderWidth="1" BorderStyle="Solid" ID="imgUser" runat="server"
                                    Width="30px" Height="30px" OnClick="MyProfile_Click" CausesValidation="false" />
                            </td>
                            <td valign="bottom">
                                <asp:LinkButton ID="lnkUserName" runat="server" CssClass="BlueText" OnClick="MyProfile_Click"
                                    CausesValidation="false"></asp:LinkButton>
                            </td>
                            <td valign="bottom">
                                <asp:LinkButton ID="lnkInbox" runat="server" Text="Inbox" OnClick="MyInBox_Click"
                                    CausesValidation="false" CssClass="BlueText"></asp:LinkButton>
                            </td>
                            <td valign="bottom">
                                <asp:LinkButton ID="MyProfile" runat="server" Text="My Profile" OnClick="MyProfile_Click"
                                    CausesValidation="false" CssClass="BlueText"></asp:LinkButton>
                            </td>
                            <td valign="bottom">
                                <asp:LinkButton ID="Logout" runat="server" Text="Logout" OnClick="Logout_Click" CssClass="BlueText"
                                    CausesValidation="false"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </LoggedInTemplate>
            </asp:LoginView>
        </td>
    </tr>
    <tr>
        <td class="DarkBackground" align="right" colspan="3">
            <table border="0" cellpadding="2" cellspacing="0" width="100%">
                <tr>
                <td class="LightGrayText" width="50" align="center">Company</td>
                <td class="LightGrayText" width="5" align="center">|</td>
                <td class="LightGrayText" width="50" align="center">Group</td>
                <td class="LightGrayText" width="5" align="center">|</td>
                <td class="LightGrayText" width="50" align="center">Private</td>
                    <td class="LightGrayText" align="right" nobr="nobr">
                        By Name:
                        <asp:TextBox ID="txtSearch" Height="16px" CssClass="input" runat="server" Width="170px"></asp:TextBox>
                        <asp:Button ID="btnSearch" CssClass="submitGood" runat="server" Text="Search" OnClick="btnSearch_Click"
                            EnableViewState="false" CausesValidation="false" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
